package com.zjuee.base.dto.common.tporder;

import com.zjuee.base.base.Converter;
import com.zjuee.base.bean.Pages;
import com.zjuee.base.model.common.tporder.WkTransStatisticsEntity;
import lombok.*;
import org.springframework.beans.BeanUtils;

/**
 * NoticePolicy DTO
 *
 * @author wu liang
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class TransStatisticsDto extends WkTransStatisticsEntity implements Converter<WkTransStatisticsEntity, TransStatisticsDto> {
    private Pages page;

    @Override
    public void convertToDo(WkTransStatisticsEntity wkTransStatisticsEntity) {
        BeanUtils.copyProperties(this, wkTransStatisticsEntity);
    }

    @Override
    public TransStatisticsDto convert(WkTransStatisticsEntity wkTransStatisticsEntity) {
        BeanUtils.copyProperties(wkTransStatisticsEntity, this);
        return this;
    }
}
